package com.eic.framework.core.security;

import com.ruoyi.common.core.domain.model.LoginUser;

public class SecurityContext {
    private static ThreadLocal<LoginUser> user=new ThreadLocal<>();
    public static void bindLoginUser(LoginUser loginUser){
        user.set(loginUser);
    }
    public static LoginUser getLoginUser(){
        return user.get();
    }
    public static void clear(){
        user.remove();
    }
}
